function w = weights(quant_centers, v, phi_v, k)

P_d = prob_detect(quant_centers, v, phi_v, k);
w = P_d ./ (P_d - 1);
end